package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.CollectProduct;
import com.ruoyi.zhgd.domain.ProductDept;
import com.ruoyi.zhgd.domain.vo.CollectProductVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.zhgd.dto.CollectProductDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 派车信息Mapper接口
 *
 * @author yhy
 * @date 2023-09-19
 */
public interface CollectProductMapper extends BaseMapperPlus<CollectProductMapper, CollectProduct, CollectProductVo> {



    List<ProductDept> deptList(ProductDept productDept);

    @DataPermission({
        @DataColumn(key = "deptName", value = "sde.dept_id"),
    })
    List<Map> productList(Page page,@Param("params") Map<String, Object> params);

    CollectProduct selectByPkId(@Param("parentPkId") String parentPkId);

    List<CollectProductDto> selectSumWeeks(@Param("params") Map<String, Object> params);

    List<CollectProductDto> selectSumMonths(@Param("params") Map<String, Object> params);

    List<CollectProductDto> selectSumQuarters(@Param("params") Map<String, Object> params);

    List<CollectProductDto> selectDateDays(@Param("params") Map<String, Object> params);

    List<Map> productListDay(Page page, @Param("params") Map<String, Object> params);


    List<CollectProductDto> selectDateDaysd(@Param("params")Map<String, Object> params);

    int updateByPkId(@Param("pkId") String pkId);

    List<CollectProduct> selectByList();

    CollectProduct getOneProduct();

    List<Long> selectPkids(String deptId);
}
